package cn.zhf.shop.entity.organization;

import cn.zhf.shop.config.IgnoreSwaggerParameter;
import cn.zhf.shop.entity.ConsoleUser;
import cn.zhf.shop.entity.lesson.Lesson;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.beans.Transient;
import java.util.Date;

@ApiModel(value = "cn-zhf-shop-entity-Organization")
@Data
public class Organization {


    /**
     * 机构id
     */
    private Integer orgId;

    /**
     * 机构名称
     */
    private String orgName;

    /**
     * 机构分类
     */
    @ApiModelProperty(value="机构分类")
    private Integer orgType;

    /**
     * 机构Logo
     */
    private String orgImg;

    /**
     * 负责人id
     */
    private Integer head;

    /**
     * 开户行
     */
    private String depositBank;

    /**
     * 账号
     */
    private String account;

    /**
     * 联系人
     */
    private String contacts;

    /**
     * 联系人电话
     */
    private String contactNumber;

    /**
     * 分账比例
     */
    private Double shareRatio;

    /**
     * 推荐人id
     */
    private Integer referenceId;

    /**
     * 返佣比例
     */
    private Double referenceRatio;

    private String typeName;

    /**
     * 联系电话（座机号）
     */
    private String contactTel;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createDate;

    @IgnoreSwaggerParameter
    private ConsoleUser consoleUser;

    private String orgAddress;

    private String orgTime;

    private String orgEmail;

    private String  org_username;

    private String  orgInfo;




    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate( Date createDate) {
        this.createDate = createDate;
    }


    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }



    public String getOrgImg() {
        return orgImg;
    }

    public void setOrgImg(String orgImg) {
        this.orgImg = orgImg;
    }

    public Integer getHead() {
        return head;
    }

    public void setHead(Integer head) {
        this.head = head;
    }

    public String getDepositBank() {
        return depositBank;
    }

    public void setDepositBank(String depositBank) {
        this.depositBank = depositBank;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public Double getShareRatio() {
        return shareRatio;
    }

    public void setShareRatio(Double shareRatio) {
        this.shareRatio = shareRatio;
    }

    public Integer getReferenceId() {
        return referenceId;
    }

    public void setReferenceId(Integer referenceId) {
        this.referenceId = referenceId;
    }

    public Double getReferenceRatio() {
        return referenceRatio;
    }

    public void setReferenceRatio(Double referenceRatio) {
        this.referenceRatio = referenceRatio;
    }
}
